/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package network;

import java.util.*;

class Friend2Task extends TimerTask {

	HashMap<String, Timer> hm;

	HashMap<String, Timer> hm2;

	String friendName;

	Friend2Task(HashMap<String, Timer> hm, HashMap<String, Timer> hm2,
			String friendName) {
		this.hm = hm;
		this.hm2 = hm2;
		this.friendName = friendName;
	}

	public void run() {
		hm.remove(friendName);
		hm2.remove(friendName);
	}
}
